package com.easy.system.util;

import flexjson.JSONSerializer;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * Date: 13-7-1
 * Time: 上午11:04
 * To change this template use File | Settings | File Templates.
 */
public class ResultDto<T> {
    private String message;
    private boolean success;
    private T rows;
    private Long total;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public T getRows() {

        return rows;
    }

    public void setRows(T rows) {
        this.rows = rows;
    }


    public String getMessage() {
        return message;

    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String toString(){
        return new JSONSerializer().exclude("*.class").serialize(this).toString();
    }
}
